﻿@using TDF.Core.Configuration
@using TDF.Core.Ioc
@using TDF.Core.Operator
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>@Configs.Instance.GetValue("SystemName")</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1" name="viewport" />
    <link rel="shortcut icon" href="~/Content/favicon.ico" />
    <link href="~/Scripts/assets/global/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
    <link href="~/Scripts/assets/global/plugins/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" type="text/css" />
    <link href="~/Scripts/assets/global/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="~/Scripts/assets/global/plugins/bootstrap-switch/css/bootstrap-switch.min.css" rel="stylesheet" type="text/css" />
    <link href="~/Scripts/bootstrap3-editable/css/bootstrap-editable.css" rel="stylesheet" />
    <!--样式 开始-->
    <!-- BEGIN THEME GLOBAL STYLES -->
    <link href="~/Scripts/assets/global/css/components.min.css" rel="stylesheet" id="style_components" type="text/css" />
    <link href="~/Scripts/assets/global/css/plugins.min.css" rel="stylesheet" type="text/css" />
    <link href="~/Scripts/assets/global/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet" type="text/css" />
    <link href="~/Scripts/assets/global/plugins/bootstrap-select/css/bootstrap-select.min.css" rel="stylesheet" type="text/css" />
    <link href="~/Scripts/bootstrap3-editable/css/select2.css" rel="stylesheet" />
    <link href="~/Scripts/assets/global/plugins/bootstrap-toastr/toastr.min.css" rel="stylesheet" type="text/css" />
    <!-- END THEME GLOBAL STYLES -->
    <!--样式 结束-->
    <!-- BEGIN THEME LAYOUT STYLES -->
    <link href="~/Scripts/assets/layouts/layout/css/layout.min.css" rel="stylesheet" type="text/css" />
    <link href="~/Scripts/assets/layouts/layout/css/themes/light2.min.css" rel="stylesheet" type="text/css" id="style_color" />
    <link href="~/Scripts/assets/layouts/layout/css/custom.min.css" rel="stylesheet" type="text/css" />
    <!-- END THEME LAYOUT STYLES -->
    @RenderSection("styles", false)
    <!-- BEGIN CORE PLUGINS -->
    <script src="~/Scripts/assets/global/plugins/jquery.min.js" type="text/javascript"></script>
    <script src="~/Scripts/assets/global/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
    <script src="~/Scripts/assets/global/plugins/bootstrap-hover-dropdown/bootstrap-hover-dropdown.min.js" type="text/javascript"></script>
    <script src="~/Scripts/assets/global/plugins/jquery-slimscroll/jquery.slimscroll.min.js" type="text/javascript"></script>
    <script src="~/Scripts/assets/global/plugins/jquery.blockui.min.js" type="text/javascript"></script>
    <script src="~/Scripts/assets/global/plugins/bootstrap-switch/js/bootstrap-switch.min.js" type="text/javascript"></script>
    <script src="~/Scripts/assets/global/plugins/jquery-validation/js/jquery.validate.min.js" type="text/javascript"></script>
    <!-- END CORE PLUGINS -->
    <!-- BEGIN PAGE LEVEL PLUGINS -->
    <script src="~/Scripts/assets/global/plugins/bootstrap-table/bootstrap-table.js?p=3" type="text/javascript"></script>
    <script src="~/Scripts/assets/global/plugins/bootstrap-select/js/bootstrap-select.min.js" type="text/javascript"></script>
    <link href="~/Scripts/bootstrap3-editable/css/select2-bootstrap.css" rel="stylesheet" />
    <script src="~/Scripts/assets/global/plugins/bootbox/bootbox.min.js" type="text/javascript"></script>
    <script src="~/Scripts/assets/global/plugins/bootstrap-toastr/toastr.min.js" type="text/javascript"></script>
    <!-- END PAGE LEVEL PLUGINS -->
    <!-- BEGIN THEME GLOBAL SCRIPTS -->
    <script src="~/Scripts/assets/global/scripts/app.min.js" type="text/javascript"></script>
    <script src="~/Scripts/bootstrap3-editable/js/select2.full.min.js"></script>
    <!-- END THEME GLOBAL SCRIPTS -->

    <script src="~/Scripts/assets/pages/scripts/table-bootstrap.min.js" type="text/javascript"></script>
    <script src="~/Scripts/assets/pages/scripts/form-validation.min.js" type="text/javascript"></script>
    <script src="~/Scripts/bootstrap3-editable/js/bootstrap-table-editable.js"></script>
    <script src="~/Scripts/bootstrap3-editable/js/bootstrap-editable.js"></script>
    <!-- BEGIN THEME LAYOUT SCRIPTS -->
    <script src="~/Scripts/assets/layouts/layout/scripts/layout.min.js" type="text/javascript"></script>
    <script src="~/Scripts/assets/layouts/layout/scripts/demo.min.js" type="text/javascript"></script>
    <script src="~/Scripts/assets/layouts/global/scripts/quick-sidebar.min.js" type="text/javascript"></script>
    <!-- END THEME LAYOUT SCRIPTS -->
    <script src="~/Scripts/assets/Custom/Custom.js" type="text/javascript"></script>

    <style>
        .my-modal .modal-dialog {
            margin-top: 100px !important;
            width: 650px !important;
        }
        .mt7 {
            margin-top:7px;
        }
    </style>
</head>

<body class="page-header-fixed page-sidebar-closed-hide-logo page-content-white page-quick-sidebar-open">
    <!-- TOP -->
    <!--top Begin-->
    <div class="page-header navbar navbar-fixed-top">
        <!-- BEGIN HEADER INNER -->
        <div class="page-header-inner ">
            <!-- BEGIN LOGO -->
            <div class="page-logo">
                <a href="javascript:;">
                    @{
                        var logo = Configs.Instance.GetValue("SystemLogo");
                        if (!string.IsNullOrWhiteSpace(logo))
                        {
                            <img src="@logo" alt="logo" style="height: 30px;" class="logo-default" />
                        }
                    }
                </a>
                <div class="menu-toggler sidebar-toggler" style="display: none">
                    <span></span>
                </div>
            </div>
            <!-- END LOGO -->
            <!-- BEGIN RESPONSIVE MENU TOGGLER -->
            <a href="javascript:;" class="menu-toggler responsive-toggler" data-toggle="collapse" data-target=".navbar-collapse">
                <span></span>
            </a>
            <!-- END RESPONSIVE MENU TOGGLER -->

            @*<div class="form-group" style="float: left; display: block; height: 50px; padding-left: 20px;">
                <label class="control-label" style="margin-top: 15px;">区域：</label>
            </div>
            <div class="form-group" style="float: left; display: block; width: 235px; height: 50px; padding-left: 20px; padding-right: 20px;">

                <div class="input-icon right" style="margin-top: 6px;">
                    <i class="fa"></i>
                    <select class="form-control" id="AreaId" name="AreaId" required="" aria-required="true">
                        <option value="7067c0c8-6bff-46ac-acf3-b025988da3b9" selected="selected">焊接区</option>
                        <option value="85d0f6eb-9c57-4c9b-8450-49a0be78bacb">真空吸附区</option>
                    </select>
                </div>
            </div>*@

            <!-- BEGIN TOP NAVIGATION MENU -->
            <div class="top-menu">
                <ul class="nav navbar-nav pull-right">
                    <!-- BEGIN NOTIFICATION DROPDOWN -->
                    <!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte -->
                    <!-- END NOTIFICATION DROPDOWN -->
                    <!-- BEGIN INBOX DROPDOWN -->
                    <!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte -->
                    <!-- END INBOX DROPDOWN -->
                    <!-- BEGIN TODO DROPDOWN -->
                    <!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte -->
                    <!-- END TODO DROPDOWN -->
                    <!-- BEGIN USER LOGIN DROPDOWN -->
                    <!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte -->
                    <li class="dropdown dropdown-user">
                        <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
                            @{
                                var current = Ioc.Resolve<IOperatorProvider>().GetCurrent();
                                if (current != null)
                                {
                                    <span class="username username-hide-on-mobile">
                                        @current.UserName
                                    </span>
                                }
                            }
                        </a>
                    </li>
                    <!-- END USER LOGIN DROPDOWN -->
                    <!-- BEGIN QUICK SIDEBAR TOGGLER -->
                    <!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte -->
                    <li class="dropdown dropdown-quick-sidebar-toggler">
                        <a href="javascript:logOutExitAjax();" class="dropdown-toggle">
                            <i class="icon-logout"></i>
                        </a>
                    </li>
                    <!-- END QUICK SIDEBAR TOGGLER -->
                </ul>
            </div>
            <!-- END TOP NAVIGATION MENU -->
        </div>
        <!-- END HEADER INNER -->
    </div>
    <!--top End-->
    <div class="clearfix"> </div>

    <!-- TOP end -->
    <!-- Container  -->
    <div class="page-container">
        <!--Begin 侧边栏-->

        <div class="page-sidebar navbar-collapse collapse">
            <ul id="ulMenu" class="page-sidebar-menu  page-header-fixed " data-keep-expanded="false" data-auto-scroll="true" data-slide-speed="200" style="padding-top: 20px">
                <!-- DOC: To remove the sidebar toggler from the sidebar you just need to completely remove the below "sidebar-toggler-wrapper" LI element -->
                <li class="nav-item start ">
                    <a href="/" class="nav-link nav-toggle">
                        <i class="icon-home"></i>
                        <span class="title">@Configs.Instance.GetValue("SystemName")</span>
                    </a>
                </li>
                @*<li class="heading"><h3 class="uppercase">报审子系统</h3></li>*@
                <li id="10" class="nav-item">
                    <a href="javascript:void(0);" data-url="/Product/Index" class="nav-link nav-toggle">
                        <i class="fa fa-cogs"></i>
                        <span class="title">帐号管理</span>
                        <span class="selected hide"></span>
                    </a>
                </li>

                @*<li id="40" class="nav-item">
                    <a href="javascript:void(0)" class="nav-link nav-toggle">
                        <i class="fa fa-database"></i>
                        <span class="title">库存模块</span>
                        <span class="selected"></span>
                        <span class="arrow"></span>
                    </a>
                    <ul class="sub-menu" style="display: none;">
                        <li class="nav-item">
                            <a href="javascript:void(0);" data-url="/ProductWarehouse/Index" class="nav-link ">
                                <span class="title">库存列表</span>
                            </a>
                        </li>
                        <li class="nav-item">
                            <a href="javascript:void(0);" data-url="/ProductWarehouse/Log" class="nav-link ">
                                <span class="title">库存日志</span>
                            </a>
                        </li>
                        <li class="nav-item">
                            <a href="javascript:void(0);" data-url="/ProductWarehouse/ScrapLog" class="nav-link ">
                                <span class="title">报废日志</span>
                            </a>
                        </li>
                        <li class="nav-item">
                            <a href="javascript:void(0);" data-url="/ProductWarehouse/Scrap" class="nav-link ">
                                <span class="title">报废</span>
                            </a>
                        </li>
                        <li class="nav-item">
                            <a href="javascript:void(0);" data-url="/ProductWarehouse/export" class="nav-link ">
                                <span class="title">导出</span>
                            </a>
                        </li>
                    </ul>
                </li>*@


                @*<li id="60" class="nav-item">
                    <a href="javascript:void(0);" data-url="/Home/Index6" class="nav-link nav-toggle">
                        <i class="fa fa-pencil-square-o"></i>
                        <span class="title">日志模块</span>
                        <span class="selected hide"></span>
                    </a>
                </li>
                <li id="70" class="nav-item">
                    <a href="javascript:void(0);" data-url="/Home/Index7" class="nav-link nav-toggle">
                        <i class="fa fa-users"></i>
                        <span class="title">用户管理</span>
                        <span class="selected hide"></span>
                    </a>
                </li>*@
            </ul>
        </div>

        <!--END 侧边栏-->
        <!--Begin 活动区域-->
        <div class="page-content-wrapper">
            <div class="page-content">
                <a name="table-auto-height"></a>
                <!--内容区域-->
                @RenderBody()
                <!--END 内容区域-->
            </div>
        </div>
        <!--END 活动区域-->

    </div>
    <!-- Container end  -->
    <!-- footer -->

    <div class="page-footer">
        <div class="page-footer-inner">
            2017 &copy; @Configs.Instance.GetValue("SystemName")
        </div>
        <div class="scroll-to-top">
            <i class="icon-arrow-up"></i>
        </div>
    </div>
    <!-- footer end-->
    <!-- 验证非空 开始 -->
    <script src="~/Scripts/assets/global/plugins/select2/js/select2.full.min.js" type="text/javascript"></script>
    <script src="~/Scripts/assets/global/plugins/jquery-validation/js/additional-methods.min.js" type="text/javascript"></script>
    <script src="~/Scripts/assets/global/plugins/bootstrap-datepicker/js/bootstrap-datepicker.min.js" type="text/javascript"></script>
    <!-- 验证非空 结束 -->
    <script type="text/javascript">
        $(function () {
            var url = getCookie("t2m_sel_menu1");
            var $selectedMenu = $("#ulMenu .nav-link[data-url='" + url + "']");
            var title = $selectedMenu.find(".title").text();
            activeMenu($selectedMenu);
            $("#action").text(title);
            $("#ulMenu .nav-link").click(function () {
                var link = $(this).attr("data-url");
                if (link == undefined) return;
                setCookie("t2m_sel_menu1", link);
                location.href = link;
            });
            var cookieAreaId = getCookie("AreaId");
            if (cookieAreaId == null) {
                cookieAreaId = $("#AreaId").val();
                setCookie("AreaId", cookieAreaId);
            }
            $("#AreaId").val(cookieAreaId);
            $("#AreaId").change(function () {
                setCookie("AreaId", $("#AreaId").val());
                location.reload();
            });
        });

        var menuUrlgo = function (url) {
            setCookie("t2m_sel_menu1", url);
            location.href = url;
        };
        var activeMenu = function ($selectedMenu) {
            $selectedMenu.parent().addClass("active").addClass("open");
            $selectedMenu.find(".hide").removeClass("hide");
        }

        logOutExitAjax = function () {
            bootbox.confirm("您确定要退出系统？", function (result) {
                if (result) {
                    $.getJSON("@Url.Action("LoginOut","Login", new { area = "" })", { p: 1 }, function (result) {
                        if (result.Success) {
                            delCookie("t2m_sel_menu1");
                            location.href = "@Url.Action("Index","Login", new { area = "" })";
                        } else {
                            showToast(3, '系统提示', result.Message);
                        }

                    });
                }
            });
        }

    </script>
    @RenderSection("scripts", required: false)
</body>
</html>
